package io.github.talelin.latticy.feign;

import io.github.talelin.latticy.vo.WarehouseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.Positive;
import java.util.List;

/**
 * @program: latticy
 * @description: 用户关联参考feign调用service
 * @author: mz
 * @create: 2022-06-13 17:59
 */
@FeignClient(value = "wms-server")
public interface UserWareFeignService {

    @GetMapping("/v1/oms-userware/{id}")
    List<WarehouseVO> getWareNameListByOmsUserId(@PathVariable(value = "id") @Positive(message = "{id.positive}") Integer id);
}
